import { formatMessage } from '@/utils/globalIntl';
// 整站电量指标
export const electIndex = [
  {
    key: 'pocOnGridEnergy',
    label: formatMessage('batteryVoltage.safe.onGrid') + '(MWh)',
    children: '',
  },
  {
    key: 'pocOffGridEnergy',
    label: formatMessage('batteryVoltage.safe.offGrid') + '(MWh)',
    children: '',
  },
  {
    key: 'consumptionEnergy',
    label: formatMessage('photovoltaic.conEnergy') + '(MWh)',
    children: '',
  },
  {
    key: 'runTimes',
    label: formatMessage('batteryVoltage.safe.hours'),
    children: '',
  },
  {
    key: 'chargedEnergy',
    label: formatMessage('forecast.totalUnitCharge') + '(MWh)',
    children: '',
  },
  {
    key: 'dischargedEnergy',
    label: formatMessage('forecast.totalUnitDischarge') + '(MWh)',
    children: '',
  },
  {
    key: 'equivalent',
    label: formatMessage('batteryVoltage.safe.utilization'),
    children: '',
  },
];
// 整站能效指标
export const energyIndex = [
  {
    key: 'comprehensive',
    label: formatMessage('batteryVoltage.safe.overEfficiency'),
    children: '',
  },
  {
    key: 'lossRate',
    label: formatMessage('batteryVoltage.safe.lossRate'),
    children: '',
  },
  {
    key: 'useRate',
    label: formatMessage('forecast.stationPowerUsage'),
    children: '',
  },
  {
    key: 'mvaLossRate',
    label: formatMessage('forecast.stationPowerLose'),
    children: '',
  },
  {
    key: 'convert',
    label: formatMessage('batteryVoltage.safe.roundtrip'),
    children: '',
  },
];
//可靠性指标
export const reliabilityMetrics = [
  {
    key: 'availableFactor',
    label: formatMessage('batteryVoltage.safe.availability'),
    children: '',
  },
  {
    key: 'failureRate',
    label: formatMessage('batteryVoltage.safe.failureRate'),
    children: '',
  },
  // {
  //   key: 'bmsFault',
  //   label: formatMessage('forecast.stackFailuresNumbers'),
  //   children: '',
  // },
  // {
  //   key: 'clusterFault',
  //   label: formatMessage('forecast.clusterFailuresNumbers'),
  //   children: '',
  // },
];

//技术指标
export const clusterTechnicalIndex = [
  {
    key: 'chargedEnergy',
    label: formatMessage('device.batteryStackChargeAmount') + '(MWh)',
    children: '',
  },
  {
    key: 'dischargedEnergy',
    label: formatMessage('device.batteryStackDischargeAmount') + '(MWh)',
    children: '',
  },
  {
    key: 'runTimes',
    label: formatMessage('device.batteryStackOperatingHours'),
    children: '',
  },
  {
    key: 'equivalent',
    label: formatMessage('device.equivalentUtilizationFactor'),
    children: '',
  },
  {
    key: 'dischargeCount',
    label: formatMessage('device.batteryStackEquivalentDischargeTimes'),
    children: '',
  },
];
// 电池堆能效指标
export const clusterEnergyIndex = [
  {
    key: 'convert',
    label: formatMessage('device.batteryStackChargeDischargeEfficiency'),
    children: '',
  },
  {
    key: 'retention',
    label: formatMessage('device.batteryStackEnergyRetentionRateEvaluation'),
    children: '',
  },
  {
    key: 'lossRate',
    label: formatMessage('device.batteryStackLossRate'),
    children: '',
  },
];
//电池堆可靠性指标
export const clusterReliabilityMetrics = [
  {
    key: 'availableFactor',
    label: formatMessage('batteryVoltage.safe.stackLose'),
    children: '',
  },
  {
    key: 'utilize',
    label: formatMessage('device.batteryStackUtilizationEfficiency'),
    children: '',
  },
  {
    key: 'failureRate',
    label: formatMessage('device.batteryStackFailureRate'),
    children: '',
  },
];
